Skip to content

[Merged by Bors] - feat(Algebra/Order/BigOperators/Ring/Finset): weaken hypothesis in the Cauchy-Schwarz inequality#39268

Closed
mortarsanjaya wants to merge 2 commits into
leanprover-community:masterfrom
mortarsanjaya:AMGM
Closed

[Merged by Bors] - feat(Algebra/Order/BigOperators/Ring/Finset): weaken hypothesis in the Cauchy-Schwarz inequality#39268
mortarsanjaya wants to merge 2 commits into
leanprover-community:masterfrom
mortarsanjaya:AMGM

Conversation

@mortarsanjaya
Copy link
Copy Markdown
Contributor

@mortarsanjaya mortarsanjaya commented May 12, 2026

The hypothesis ∀ i ∈ s, r i ^ 2 = f i * g i in the Cauchy-Schwarz inequality sum_sq_le_sum_mul_sum_of_sq_eq_mul can be weakened. We only need ∀ i ∈ s, r i ^ 2 ≤ f i * g i.


This is a continuation of #38093.

Open in Gitpod

@github-actions github-actions Bot added the new-contributor This PR was made by a contributor with at most 5 merged PRs. Welcome to the community! label May 12, 2026
@github-actions
Copy link
Copy Markdown

Welcome new contributor!

Thank you for contributing to Mathlib! If you haven't done so already, please review our contribution guidelines, as well as the style guide and naming conventions. In particular, we kindly remind contributors that we have guidelines regarding the use of AI when making pull requests.

We use a review queue to manage reviews. If your PR does not appear there, it is probably because it is not successfully building (i.e., it doesn't have a green checkmark), has the awaiting-author tag, or another reason described in the Lifecycle of a PR. The review dashboard has a dedicated webpage which shows whether your PR is on the review queue, and (if not), why.

If you haven't already done so, please come to https://leanprover.zulipchat.com/, introduce yourself, and mention your new PR.

Thank you again for joining our community.

@github-actions github-actions Bot added the t-algebra Algebra (groups, rings, fields, etc) label May 12, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 12, 2026

PR summary 904f8669bc

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

+ sum_sq_le_sum_mul_sum_of_sq_le_mul

You can run this locally as follows
## from your `mathlib4` directory:
git clone https://github.com/leanprover-community/mathlib-ci.git ../mathlib-ci

## summary with just the declaration names:
../mathlib-ci/scripts/pr_summary/declarations_diff.sh <optional_commit>

## more verbose report:
../mathlib-ci/scripts/pr_summary/declarations_diff.sh long <optional_commit>

The doc-module for scripts/pr_summary/declarations_diff.sh in the mathlib-ci repository contains some details about this script.


No changes to strong technical debt.
No changes to weak technical debt.

Comment thread Mathlib/Algebra/Order/BigOperators/Ring/Finset.lean Outdated
Copy link
Copy Markdown
Member

@eric-wieser eric-wieser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bors d+

Thanks!

@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors Bot commented May 13, 2026

✌️ mortarsanjaya can now approve this pull request. To approve and merge a pull request, simply reply with bors r+. More detailed instructions are available here.

@mathlib-triage mathlib-triage Bot added the delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). label May 13, 2026
@mortarsanjaya
Copy link
Copy Markdown
Contributor Author

I think this is ready now.

bors r+

mathlib-bors Bot pushed a commit that referenced this pull request May 13, 2026
…e Cauchy-Schwarz inequality (#39268)

The hypothesis `∀ i ∈ s, r i ^ 2 = f i * g i` in the Cauchy-Schwarz inequality `sum_sq_le_sum_mul_sum_of_sq_eq_mul` can be weakened. We only need `∀ i ∈ s, r i ^ 2 ≤ f i * g i`.
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors Bot commented May 13, 2026

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors Bot changed the title feat(Algebra/Order/BigOperators/Ring/Finset): weaken hypothesis in the Cauchy-Schwarz inequality [Merged by Bors] - feat(Algebra/Order/BigOperators/Ring/Finset): weaken hypothesis in the Cauchy-Schwarz inequality May 13, 2026
@mathlib-bors mathlib-bors Bot closed this May 13, 2026
@mortarsanjaya mortarsanjaya deleted the AMGM branch May 13, 2026 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). new-contributor This PR was made by a contributor with at most 5 merged PRs. Welcome to the community! t-algebra Algebra (groups, rings, fields, etc)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants